package com.gpy.hospital.cms.service;

import com.github.pagehelper.PageInfo;
import com.gpy.hospital.cms.pojo.Blog;
import com.gpy.hospital.common.ServerResponse;

import java.util.List;

public interface IBlogService {
    PageInfo<Blog> getAll(Integer pageNum, Integer pageSize,String blogName);

    Blog getById(Integer id);

    ServerResponse addArticle(Blog blog);

    ServerResponse deleteById(Integer id);

    List<Blog> getRandom();

    List<Blog> getAllByStatus();

    List<Blog> getAllByTitle(String searchWords);
}
